#pragma once

#include "Define.h"
#include "Dialog.h"

class BuildInfoDlg : public ModalDialog
{
	DECLARE_SINGLETON(BuildInfoDlg);

public:
	tEvent0 eventLevelUP;
	tEvent0 eventDestroy;

public:
	BuildInfoDlg();
	~BuildInfoDlg();

	void SetBuildInfo(eBuildType::enum_t type, const TString128 & info);

protected:
	MGUI_Layout * mDialog;
	MGUI_Widget * mWidget_Build;

protected:
	void OnClose_();
	void OnLevelUP_();
	void OnDestroy_();

	tListener0<BuildInfoDlg> OnClose;
	tListener0<BuildInfoDlg> OnLevelUP;
	tListener0<BuildInfoDlg> OnDestroy;
};